home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Best of MacTutor - S…e Code for Volumes 1 to 5
/
The Best of MacTutor - Source Code for Volume 1-5 (Wayzata Technology)(6031)(1990).bin
/
Source Code
/
#48 (Sep 89)
/
Zoundz Source
/
InitTheMenus.Pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1989-05-08
|
756b
|
37 lines
unit InitTheMenus;
interface
uses
PrintTraps, Sound, MyGlobals;
procedure Init_My_Menus; {Initialize the menus}
implementation
procedure Init_My_Menus; {Initialize the menus}
const
Menu1 = 1001; {Menu resource ID}
Menu2 = 1002; {Menu resource ID}
Menu3 = 1003; {Menu resource ID}
Menu4 = 1004;
begin {Start of Init_My_Menus}
ClearMenuBar; {Clear any old menu bars}
AppleMenu := GetMenu(Menu1);
InsertMenu(AppleMenu, 0);
AddResMenu(AppleMenu, 'DRVR');
M_File := GetMenu(Menu2);
InsertMenu(M_File, 0);
M_Edit := GetMenu(Menu3);
InsertMenu(M_Edit, 0);
M_Extend := GetMenu(Menu4);
InsertMenu(M_Extend, 0);
DrawMenuBar;
end; {End of procedure Init_My_Menus}
end.